package com.hk.core.authentication.api.reactive.menu;

import com.hk.core.authentication.api.menus.Menu;
import reactor.core.publisher.Flux;

import java.util.List;

/**
 * @author Kevin
 * @date 2022-07-01 22:05
 */
public class ReactiveDefaultConfigMenuManager extends AbstractReactiveMenuManager {

    private final List<Menu> menuList;

    public ReactiveDefaultConfigMenuManager(List<Menu> menuList) {
        this.menuList = menuList;
    }

    @Override
    protected Flux<Menu> getAllMenu() {
        return Flux.fromIterable(menuList);
    }
}
